package com.hanthink.system.service.impl.report;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hanthink.system.mapper.report.ApplyextensionMapper;
import com.hanthink.system.domain.report.Applyextension;
import com.hanthink.system.service.report.IApplyextensionService;

/**
 * -Service业务层处理
 * 
 * @author lizhao
 * @date 2024-11-19
 */
@Service
public class ApplyextensionServiceImpl implements IApplyextensionService 
{
    @Autowired
    private ApplyextensionMapper applyextensionMapper;

    /**
     * 查询-
     * 
     * @param id -ID
     * @return -
     */
    @Override
    public Applyextension selectApplyextensionById(Long id)
    {
        return applyextensionMapper.selectApplyextensionById(id);
    }

    /**
     * 查询-列表
     * 
     * @param applyextension -
     * @return -
     */
    @Override
    public List<Applyextension> selectApplyextensionList(Applyextension applyextension)
    {
        return applyextensionMapper.selectApplyextensionList(applyextension);
    }

    /**
     * 新增-
     * 
     * @param applyextension -
     * @return 结果
     */
    @Override
    public int insertApplyextension(Applyextension applyextension)
    {
        return applyextensionMapper.insertApplyextension(applyextension);
    }

    /**
     * 修改-
     * 
     * @param applyextension -
     * @return 结果
     */
    @Override
    public int updateApplyextension(Applyextension applyextension)
    {
        int i = applyextensionMapper.updateApplyextension(applyextension.getId(),applyextension.getApprovalresult(), applyextension.getApprovalmemo());
        return i;
    }

    /**
     * 批量删除-
     * 
     * @param ids 需要删除的-ID
     * @return 结果
     */
    @Override
    public int deleteApplyextensionByIds(Long[] ids)
    {
        return applyextensionMapper.deleteApplyextensionByIds(ids);
    }

    /**
     * 删除-信息
     * 
     * @param id -ID
     * @return 结果
     */
    @Override
    public int deleteApplyextensionById(Long id)
    {
        return applyextensionMapper.deleteApplyextensionById(id);
    }
}
